/******************************************************************************
File:			plc_.H
Author:		William Young	
Date:		2012-04-26
Version: 		v1.0
******************************************************************************/
#ifndef _PLC_H_
#define _PLC_H_

#include "bl6810.h"
#include "msg.h"
#include "msg_queue.h"
#include "plc_proc.h"

unsigned char PLCSend(unsigned char* pt, unsigned char dataLen, unsigned char mode);

extern unsigned char rcv_valid[4];	// meanning 1:bpsk valid; 2:ds15 valid: 3:ds63 valid
extern unsigned char rcv_error[4];	// 1: sync fail; 2: eop fail
extern unsigned char rcv_len[4];
extern unsigned char xdata rcv_buf[4][256];
extern unsigned char rcv_agcword;

#endif

